def hasaki(string=None):
    def a():
        return "aaaaaaaaa"
    def b():
        return "bbbbbbbbb"
    if string:
        return a()
    else:
        return b()

print(hasaki)    # <function hasaki at 0x000001D6F26F1488>
print(hasaki())  # bbbbbbbbb